#!/usr/bin/python3

import turtle

myscreen = turtle.Screen()
myturtle = turtle.Turtle()

myturtle.penup()
myturtle.back(100)
myturtle.right(90)
myturtle.forward(150)
myturtle.left(90)
myturtle.pendown()

def draw_square(side):
    for count in range(4):
        myturtle.forward(side)
        myturtle.left(90)
    

def draw_rectangle(width, height):
    for count in range(2):
        myturtle.forward(width)
        myturtle.left(90)
        myturtle.forward(height)
        myturtle.left(90)

def draw_triangle(side):
    for count in range(3):
        myturtle.forward(side)
        myturtle.left(120)
def draw_window(side):
    myturtle.forward(side)
    myturtle.left(90)
    myturtle.forward(side/2)
    myturtle.left(90)
    myturtle.forward(side)
    myturtle.right(90)
    myturtle.forward(side/2)
    myturtle.right(90)
    myturtle.forward(side)
    myturtle.right(90)
    myturtle.forward(side)
    myturtle.right(90)
    myturtle.forward(side/2)
    myturtle.right(90)
    myturtle.forward(side)
    myturtle.left(90)
    myturtle.forward(side/2)
    myturtle.left(90)
    myturtle.forward(side)
    myturtle.left(90)
	
	
def draw_gap(gap_size):
    myturtle.penup()
    myturtle.forward(gap_size)
    myturtle.pendown()

draw_square(300)
draw_gap(100)
draw_rectangle(100, 150)
myturtle.back(100)
myturtle.left(90)
myturtle.forward(300)
myturtle.right(90)
draw_triangle(300)
myturtle.penup()
myturtle.forward(20)
myturtle.right(90)
myturtle.forward(120)
myturtle.left(90)
myturtle.pendown()
draw_window(60)
myturtle.penup()
myturtle.forward(200)
myturtle.pendown()
draw_window(60)
myscreen.exitonclick()